package com.zys.entity;

/**
 * 返回结果封装类
 */
public class Result {
  private Boolean flag;         // 用户请求是否成功
  private String message;       // 提示信息
  private Object data;          // 需要返回的数据

  public Result(Boolean flag, String message) {
    this.flag = flag;
    this.message = message;
  }

  public Result(Boolean flag, String message,Object data) {
    this.flag = flag;
    this.message = message;
    this.data = data;
  }

  public Boolean getFlag() {
    return flag;
  }

  public void setFlag(Boolean flag) {
    this.flag = flag;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public Object getData() {
    return data;
  }

  public void setData(Object data) {
    this.data = data;
  }
}
